package br.com.minilocadora.dao.core;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface Dao<T> extends Serializable {
	
	public Integer incluir(T entity) throws Exception;
	
	public void excluir(T entity) throws Exception;
	
	public void alterar(T entity) throws Exception;
	
	public List<T> listar(Integer first, Integer pageSize,
			String sortField, String ordenacao,
			Map<String, String> filters) throws Exception;
	
	public Integer totalDeRegistro() throws Exception;

}
